<?php



class TabDecanatosMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.TabDecanatosMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('xaman');

		$tMap = $this->dbMap->addTable('tab_decanatos');
		$tMap->setPhpName('TabDecanatos');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('ID_DECANATO', 'IdDecanato', 'string', CreoleTypes::VARCHAR, true, 5);

		$tMap->addForeignKey('CF_NUCLEO', 'CfNucleo', 'string', CreoleTypes::CHAR, 'tab_nucleos', 'ID_NUCLEO', true, 3);

		$tMap->addColumn('NOMBRE', 'Nombre', 'string', CreoleTypes::VARCHAR, true, 45);

		$tMap->addColumn('ESTATUS', 'Estatus', 'string', CreoleTypes::CHAR, true, 1);

	} 
} 